from django.contrib import admin
from django.urls import path, include

from apps.areas import views

urlpatterns = [
  path('areas/',views.AreasView.as_view()),
  path('areas/<area_id>/', views.SubAreasView.as_view()),
  path('addresses/create/',views.AddressView.as_view()),
  path('addresses/', views.AddressView.as_view()),
  # 设置默认地址
  path('addresses/<address_id>/default/',views.DefaultAddressView.as_view()),
  # 修改地址
  # path('')
  # 删除收货地址
  path('addresses/<address_id>/', views.AddressView.as_view()),
  # 修改地址标题
  path('addresses/<address_id>/title/',views.UpdateTitleAddressView.as_view()),
  # 修改密码
  path('password/',views.ChangePasswordView.as_view()),
]


